My streets are stored in an array, so I made two subs 'EnterStreet' and 'LeaveStreet' and then walk through the street array, to grab the corresponding information.
If you used the code provided in your first post, being:
Usualy when Lapper 'crashes' things are written in the logfile (unless the whole application crashes and Windows tells you that the application stopped working).
If there are errors written in the logfile, that might point you in the right direction of what is going wrong.
Right after this message I will test my own CfL streetcode and see if it's still working or not, using Lapper 7.0.4.10
And thanks to you for keeping this project going.
It's great working with you, wether it's bug hunting or bouncing off ideas to each other.
Keep up the good work
I've picked this script up and went on building some features and solved some issues I came across.
There's probably more to do, but right now it's a fully functional game.
All credits to Bass-Driver for this script.
Changelog V1.01:
- Added counter to show how many guesses are left
- When number of guesses reaches 0, game ends
- Raise counter '$HangManMinigameStarted' by 1 when player starts Hangman
- Lower counter '$HangManMinigameStarted' by 1 when player closes Hangman
- Added counter to generate dynamic button ID in Sub 'Hangman'
- Close all buttons on screen when player closes Hangman
- When word is guessed, game ends
- Fixed a bug that showed the correct answer on 2nd game immediately after entering first letter
- Added to show the correct answer when game has ended and player failed to have guessed the word
- Changed eyes of drawn person from o to X when person died (action after final wrong guessed letter
- Made Hangman GUI relative to starting values, so position can be moved more easily
- Made drawing of Hangman relative to starting values, so position can me moved more easily
- Added array with words to be guessed
- Added option to Restart game when word is guessed or when you failed to guess to word
Change the extension of the file to .lpr and add it to addonsused.lpr to be able to use it.
Press the 'Preview in Full Editor' button, which is at the bottom right corner of the Quick answer box you are typing your text in.
Then you will see this:
Great work FreeScirocco, thanks for making the effort.
Maybe include the sourcefiles as well in the ZIP-file, so others will be able to work with that in the future (if needed or if they want to).
Thanks for this.
I know the same problem with RO11 not being read correctly, was present in LFS Lapper and was fixed by Bass-driver recently.
So I guess the same fix should be applied for this program.
Maybe he could tell us, how he solved it, so that this can be applied here as well.
I am reaching out to the coders on this forum and ask them to update a program called 'Trackinfo' to support the latest LFS tracks and configs.
The program is once written by Gai-Luron and can be found in this thread: https://www.lfs.net/forum/post/1185460#post1185460
But using the -t switch will result in this message:
So I used the -i switch like I used to do when using Trackinfo maker 1.2, but then get this message:
Apart from the above issue, the program doesn't take the new Rockingham track into account and also the changed configs of Blackwood (rallytrack going from BL2 to BL3) aren't updated in this program.
I would highly appreciate it, if someone with programming skils, would be willing to look into this programme (sourcecode is in the download) and update it so it can be used again to generate a file that can be used in combination with LFS Lapper.
Test has finished and initial problem is solved (well, the real problem isn't solved, but the consequences it had, are solved for my script).
Thanks to all who participated and dedicated some of their time to help me, highly appreciate that.
I did a rewrite of the code (skipping the failing WHILE-loop and moved to a FOR-loop instead) and hoped to have cracked the problem once and for all now.
Again this needs to be tested, so I am calling out to the community once more.
Test server: AB.nl[TST]
Mode: Demo
Test time: 17:30 CET / 16:30 UTC
I will add the password to this message when starttime of this test is near.
Hopefully some people are willing to help me out (again).
Thanks in advance.
Okay, to be a bit more specific, the above happens when a race is completed and then Lapper is stopped/started or restarted with a car (but probably with more as well) being on track.
Version seems to work fine as far as I can tell by testing it with 1 player.
There's one odd thing, every time Lapper is started (doesn't make a difference if you start the EXE or do !reload), this event from my Pitboard is executed:
<?php Sub OnRaceStart_Pitboard() # Lapper event IF ($start_window_1 == "") THEN cmdLFS( "/rcm ^3Clean racing and have fun :-)" ); ELSE cmdLFS( "/rcm ^7Pitwindow is set to: ^2" . $start_window_1 . " ^7- ^1" . $end_window_1 ); ENDIF cmdLFS( "/rcm_all" );
### Set $qualify to off ### $qualify="off"; ### End ###
EndSub ?>
It has never done this before and there's no need to run an RaceStart event, just when Lapper is launched.
Maybe it has something to do with debugging being active, but it seems to be a weird one to me.
There's one bug/problem I am not able to find/solve and since the team I am running servers for, is only racing once a week (which is the only moment the server has enough people connected to be able to test things, but it's really the right moment as races are about to start then), I am reaching out to the community to come and help me out.
If you are available this afternoon, please read on and if you are willing to help, react to this topic.
Test server: AB.nl[TST]
Test time: 17:00 CET / 16:00 UTC
People needed: 10 or a bit more
If you are willing to help, give a reaction and be here this afternoon at the given time.
I will then communicate the password and will ask people to join the server one by one (that is REALLY important as I believe the problem only occurs when the number of connected people goes above a certain number).
To be clear, no racing has to be done, I only need people to be connected.
I hope enough people are willing to dedicate a little of their time to help me out to try and find/solve this issue.
Thanks in advance.
Tested the most imported scripts I have/made and they are all working as intended.
Only thing I noticed is the file "LFSLapper.lpr" in the 'BIN' folder, that wasn't there in 7.0.4.8 and earlier but is there in the last versions (7.0.4.9 and 7.0.4.10), while there don't seem to be a need for that file there.
With this script you will be able to delete records from the laptimes and driftscore database.
First of all the script has two modes, being a "User" mode and an "Admin" mode.
When in "User" mode, you will be able to see your records (laptimes/driftscores) for the currently loaded track.
When in "Admin" mode, you will be able to see your records, the records of another specific user (username can be entered) or see all records for the currently loaded track.
In both modes you have the option to delete a single record using the button at the end of each line, or delete all records for the current user, using the button at the bottom of the form.
When in "Admin" mode and having selected to show all the records for the current track, you have the option to set a filter on 'Car'.
To do so, click the "Car:" button with your LEFT mouse button and a 'Set' button will appear underneath it.
Once you click that button, you can enter a car name and then the data will be filtered down to that specific car.
It's also possible to sort the usernames ascending/decending.
To do that, click the "Username:" button using your LEFT mouse button and the displayed records will be sorted Ascending.
Clicking it again with your LEFT mouse button, will sort them Descending.
To remove the filter or sorting, just click the corresponding button "Car:" / "Username:" using your RIGHT mouse button.
Version history of this script can be found at the top of the script.
! REMEMBER ! deleting one or more records will actualy remove them from the database, so once they are gone, they are GONE.
Change the extension of the file to .lpr and add it to addonsused.lpr to be able to use it.